#ifndef __KISQL_H__
#define __KISQL_H__

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "/usr/include/mysql/mysql.h"


int kisql_init(MYSQL *mysql);
void kisql_close(MYSQL *mysql);
int kisql_query(MYSQL *mysql, const char *cmd);
my_ulonglong kisql_affected_rows(MYSQL *mysql);
int kisql_create_database(MYSQL *mysql, const char *database_name);
int kisql_delete_database(MYSQL *mysql, const char *database_name);
int kisql_change_db(MYSQL *mysql, const char *db_name);
int kisql_select_table(MYSQL *mysql, const char *args);
int kisql_create_table(MYSQL *mysql, const char *arg);
int kisql_insert_table(MYSQL *mysql, const char *table, const char *args);
int kisql_update_table(MYSQL *mysql, const char *table, const char *args, const char *condition);
#endif